package org.jeecg.modules.clues.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.clues.entity.Clues;

/**
 * @Description: 线索管理
 * @Author: jeecg-boot
 * @Date:   2020-05-04
 * @Version: V1.0
 */
public interface CluesMapper extends BaseMapper<Clues> {
    /**
     * 获取线索管理的关键词
     * @return
     */
    List<Map<String,Object>> initKeywordList();

    /**
     * 清除过期线索
     */
    void clearOutTimeClues();

    /**
     *
     */

    //自定义分页查询，方式一
    IPage<Clues> selectCluesPage(Page<Clues> page, @Param(Constants.WRAPPER) Wrapper<Clues> wrapper);

    List<String> getAllKeyword();
}
